//
//  TeacherViewModel.m
//  HTP
//
//  Created by admin on 15/11/5.
//  Copyright © 2015年 nit. All rights reserved.
//

#import "TeacherViewModel.h"

@implementation TeacherViewModel
-(void)getTeacherBySubject:(NSString *)subject{
    tns1_getTeachersBySubject *getTeacher = [[tns1_getTeachersBySubject alloc] init];
    getTeacher.subject = subject;
    [WSDLNetWork shareInstance:^interfaceSoapBindingResponse *(interfaceSoapBinding *binding) {
        return [binding getTeachersBySubjectUsingParameters:getTeacher headerElements:nil];
    } withResult:^(NSDictionary *message) {
        [self fetchResult:message];
    } throwError:^(NSError *error) {
        [self fetchError];
    }];
}
@end
